<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:composition>
		<ui:param name="idTag" value="#{id}"/>
		<ui:param name="labelTag" value="#{label}"/>
		<ui:param name="valueTag" value="#{value}"/>
		<ui:param name="itemsTag" value="#{items}"/>
		<ui:param name="converterTag" value="#{converter}"/>
		<ui:param name="itemLabelTag" value="#{itemLabel}"/>
		<ui:param name="requiredTag" value="#{required}"/>
		<ui:param name="renderedTag" value="#{empty rendered?true:rendered}" />
		
		<p:outputLabel for="#{idTag}" value="#{labelTag}:"  rendered="#{renderedTag}" style="float:right;"/>
		<p:selectOneMenu id="#{idTag}" value="#{valueTag}" required="#{requiredTag}" height="100" filter="true" filterMatchMode="startsWith"
                         effect="fade"  rendered="#{renderedTag}">
			<f:converter converterId="#{converterTag}"/>
			<f:selectItem itemLabel="#{resourceBundle['select.defaultSelect']}"/>
			<f:selectItems value="#{itemsTag}" var="item" 
				itemLabel="#{item[itemLabelTag]}" itemValue="#{item}" />
			<ui:insert/>
		</p:selectOneMenu>
		<p:message for="#{idTag}" rendered="#{renderedTag}" display="icon"/>
	</ui:composition>
</html>